import Vue from 'vue'
import Vuex from 'vuex'
console.log('vuex',Vuex)
Vue.use(Vuex)

export default new Vuex.Store({
  state:{
    city:'广州'
  },
  mutations:{
    changeCity(state, city){
      state.city = city
    }
  },
  actions:{},
  getters:{
    docubleCity(state){
      return state.city +' '+ state.city
    }
  }
})